<?php 
//session_start();
$this->load->view("header"); 



?>
<div id="user">
	
	
	<p>
		
		<table border=0 align="center">	
		<form action="<?=site_url();?>/Profil/UpdateUser" method="post" enctype="multipart/form-data">
			<tr><td><h1>Bienvenue <?echo $_SESSION['prenom'];?></h1></td></tr>	
	
				<tr>
					<td>Nom</td>
					<td><input type="text" name="nom" value="<? echo $_SESSION['nom'];?>"></td>
				</tr>
				<tr>
					<td>Prénom</td>
					<td><input type="text" name="prenom" value="<? echo $_SESSION['prenom'];?>"></td>
				</tr>
				<tr>
					<td>Mail</td>
					<td><input type="text" name="mail" value = "<? echo $_SESSION['mail'];?>"></td>
				</tr>
				<tr>
					<td>Password</td>
					<td><input type="password" name="password"></td>
				</tr>
				<tr>
					<td>Confirmation password</td>
					<td><input type="password" name="password2"></td>
				</tr>
				<tr>
					<td></td>
					<td><p>
		
		<input type="submit" value="Modifier" />
	</form> 
			<form action="<?=site_url();?>/Profil/deconnexion" method="post" enctype="multipart/form-data">	
				<input type="submit" value="Deconnexion" /></td>
			</form>
				</p>
				</tr>
		</table>
		
	</p>

	
	

</div>
<?php $this->load->view("footer"); ?>
